Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cli] permission cleanup on 'superset init' #4241

Merged
merged 2 commits into from
Feb 4, 2018

Conversation

mistercrunch
Copy link
Member

FAB sometimes creates NULL/None permissions in the database,
presumably a race condition when multiple gunicorn workers start at the
same time, and those create issues raising "AttributeError: 'NoneType'
object has no attribute 'name'"

FAB sometimes creates NULL/None permissions in the database,
presumably a race condition when multiple gunicorn workers start at the
same time, and those create issues raising "AttributeError: 'NoneType'
object has no attribute 'name'"
@mistercrunch
Copy link
Member Author

@hughhhh @betodealmeida 👀

@hughhhh
Copy link
Member

hughhhh commented Feb 2, 2018

🚢

@mistercrunch mistercrunch merged commit a616bf4 into apache:master Feb 4, 2018
@mistercrunch mistercrunch deleted the fix_perms branch February 4, 2018 04:12
@john-bodley
Copy link
Member

@mistercrunch FAB also hase this method for security cleanup (https://github.com/dpgaspar/Flask-AppBuilder/blob/master/flask_appbuilder/security/manager.py#L845). I'm not sure whether it would resolve the same issue. It's documented here.

michellethomas pushed a commit to michellethomas/panoramix that referenced this pull request May 24, 2018
* [cli] permission cleanup on 'superset init'

FAB sometimes creates NULL/None permissions in the database,
presumably a race condition when multiple gunicorn workers start at the
same time, and those create issues raising "AttributeError: 'NoneType'
object has no attribute 'name'"

* Linting
wenchma pushed a commit to wenchma/incubator-superset that referenced this pull request Nov 16, 2018
* [cli] permission cleanup on 'superset init'

FAB sometimes creates NULL/None permissions in the database,
presumably a race condition when multiple gunicorn workers start at the
same time, and those create issues raising "AttributeError: 'NoneType'
object has no attribute 'name'"

* Linting
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.23.0 labels Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.23.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants